import request from '@/utils/request'

// 查询企业观看视频记录列表
export function listEnterpriseVideoRecord(query) {
  return request({
    url: '/business/enterpriseVideoRecord/list',
    method: 'get',
    params: query
  })
}

// 查询企业观看视频记录详细
export function getEnterpriseVideoRecord(id) {
  return request({
    url: '/business/enterpriseVideoRecord/' + id,
    method: 'get'
  })
}

// 新增企业观看视频记录
export function addEnterpriseVideoRecord(data) {
  return request({
    url: '/business/enterpriseVideoRecord',
    method: 'post',
    data: data
  })
}

// 修改企业观看视频记录
export function updateEnterpriseVideoRecord(data) {
  return request({
    url: '/business/enterpriseVideoRecord',
    method: 'put',
    data: data
  })
}

// 删除企业观看视频记录
export function delEnterpriseVideoRecord(id) {
  return request({
    url: '/business/enterpriseVideoRecord/' + id,
    method: 'delete'
  })
}
